function e(e, t) {
    if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
}

Object.defineProperty(exports, "__esModule", {
    value: !0
});

var t = function() {
    function e(e, t) {
        for (var n = 0; n < t.length; n++) {
            var s = t[n];
            s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), 
            Object.defineProperty(e, s.key, s);
        }
    }
    return function(t, n, s) {
        return n && e(t.prototype, n), s && e(t, s), t;
    };
}(), n = function() {
    function n(t, s) {
        e(this, n), this._wxResult = {}, this._issuccess = !1, this._callback = s ? t.bind(s) : t, 
        this.success = this.funcSuccess.bind(this), this.fail = this.funcFail.bind(this);
    }
    return t(n, [ {
        key: "isSuccess",
        value: function() {
            return this._issuccess;
        }
    }, {
        key: "getResult",
        value: function() {
            return this._wxResult;
        }
    }, {
        key: "buildDownloadFile",
        value: function(e) {
            var t = this;
            t.file = e;
            var n = e.lastIndexOf("/");
            -1 == n ? (t.name = e, t.path = "") : (t.name = e.substring(n + 1), t.path = e.substring(0, n)), 
            t.url = wxapp.Const.cdnPath + e;
        }
    } ]), n;
}();

exports.default = n;